
<div class="topBar">
	<div class="top">
		<dl>
			<dt><?php 
$k = array (
  'name' => 'member_info',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?></dt>
			<dd>
				<span style="color:#000;">
					<a target="_blank" href="user.php?act=order_list">我的订单</a>&nbsp;|
					<a target="_blank" href="user.php">我的芝麻绿豆</a>&nbsp;|
					<a href="article_cat.php?id=3">帮助中心</a>&nbsp;|
					<a target="_blank" href="article-5.html">关于我们</a>&nbsp;|
					<a target="_blank" href="article-41.html">设计师合作</a>&nbsp;|
					<span style="padding:0 10px 0 8px;color:#000;">客服热线&nbsp;:&nbsp;<font class="font_color" style="font-weight: bold;">4008-518-978</font></span>
				</span>
			</dd>
		</dl>
	</div>
</div>



<div class="head">
<?php if ($this->_var['menu_index'] == 1): ?>
    <h1 class="left"><a href="/"><img src="themes/default/images/index/logo.jpg" class="narrowsize1" alt="<?php echo $this->_var['page_title']; ?>"><!--<img src="themes/default/images/index/head_title.jpg" class="narrowsize2">--></a></h1>
<?php endif; ?>
<?php if ($this->_var['menu_index'] != 1): ?>
    <div class="left"><a href="/"><img src="themes/default/images/index/logo.jpg" class="narrowsize1" alt="<?php echo $this->_var['page_title']; ?>"><!--<img src="themes/default/images/index/head_title.jpg" class="narrowsize2">--></a></div>
<?php endif; ?>
    <div class="right" style="z-index:999;position:relative;">
	<dl class="line1">
        <dt><form name="searchForm" action="search.php" onsubmit="return checkSearchForm()" id="ECS_search_form">
		<ul class="tabinput" id="tab1">
		<li><input name="keywords" type="text" id="search_keywords" size="45" value="想找什么商品" onfocus="onSearchTextFocus()" onblur="onSearchBlur()" class="ac_input"/>
		<input type="button" class="search" onclick="onSearchTextForm()" id="queryButton" value=" ">
		</li>
		</ul>
		<script type="text/javascript">
			function onSearchTextFocus(){
				var sear = document.getElementById('search_keywords').value;
				if('想找什么商品'==sear){
					document.getElementById('search_keywords').value = '';
				}
			}
			function onSearchBlur(){
				var sear = document.getElementById('search_keywords').value;
				if(''==sear){
					document.getElementById('search_keywords').value = '想找什么商品';
				}
			}
			function checkSearchForm(){
				var sear = document.getElementById('search_keywords').value;
				if('想找什么商品'==sear||sear==''){
					alert("请输入商品名称！");
					return false;
				}else{
					return true;
				}
			}
			function onSearchTextForm(){
				var sear = document.getElementById('search_keywords').value;
				if('想找什么商品'==sear||sear==''){
					alert("请输入商品名称！");
				}else{
					document.forms['ECS_search_form'].submit();
				}

			}
			
		</script>
	</form></dt>
        <dd><a href="flow.php"><strong><label id="shopcarcount" class="font_color">(<?php 
$k = array (
  'name' => 'cart_info_number',
);
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash;
?>)</label></strong>去购物车结算</a></dd>
     </dl>
      
      <div class="line2">
	<span>
	      <?php if ($this->_var['searchkeywords']): ?>
		   <?php echo $this->_var['lang']['hot_search']; ?> ：
		   <?php $_from = $this->_var['searchkeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');if (count($_from)):
    foreach ($_from AS $this->_var['val']):
?>
		   <a href="search.php?keywords=<?php echo urlencode($this->_var['val']); ?>"><?php echo $this->_var['val']; ?></a>
		   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	      <?php endif; ?>
      	</span>
      </div>
    </div>
    <div class="clear"></div>
</div>
																										
																		
						    		 	 

<div class="menu_main">
<div class="menubgs">
  
  <div class="left">
    <div id="sort" class="<?php if ($this->_var['menu_index'] == 1): ?>here2<?php endif; ?>" <?php if ($this->_var['menu_index'] != 1): ?>onmouseover="showMenu()" onmouseout="hideMenu()"<?php endif; ?>>
    <h2><a href="javascript:;"></a></h2>
	
	<?php if ($this->_var['categories']): ?>
	<div class="lists">
		<?php $_from = $this->_var['categories_menu3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');if (count($_from)):
    foreach ($_from AS $this->_var['cat']):
?>
		<dl>
			<dt onmouseover="showMenu2(this)" onmouseout="hideMenu2(this)"><strong><a href="javascript:;" style="color: #000000"><?php echo $this->_var['cat']['name']; ?></a> </strong></dt>
			<dd onmouseover="showMenu3(this)" onmouseout="hideMenu3(this)">
			<p>
			<?php if ($this->_var['cat']['cat_id']): ?>
			<?php $_from = $this->_var['cat']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat2');if (count($_from)):
    foreach ($_from AS $this->_var['cat2']):
?>
			<a href="<?php echo $this->_var['cat2']['url']; ?>"><?php echo $this->_var['cat2']['name']; ?></a>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			<?php endif; ?>
			</p></dd>
		</dl>
		<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	</div>
	<script type="text/javascript">
		function showMenu(){
			var obj = document.getElementById("sort");
			var ie = navigator.userAgent.indexOf('MSIE');		
			if(ie>0){
				obj.className = "here2";
			}else{
				obj.setAttribute("class","here2");
			}
		}

		function hideMenu(){
			var obj = document.getElementById("sort");
			var ie = navigator.userAgent.indexOf('MSIE');		
			if(ie>0){
				obj.className = "";
			}else{
				obj.setAttribute("class","");
			}
		}

		function showMenu2(obj){
			var ie = navigator.userAgent.indexOf('MSIE');
			if(ie>0){
				obj.className = "here";
				var nextObj = nextnode(obj.nextSibling);
				nextObj.style.display = "block";
				
			}else{
				obj.setAttribute("class","here");
				var nextObj = nextnode(obj.nextSibling);
				nextObj.style.display = "block";
			}			
		}
		function hideMenu2(obj){
			var ie = navigator.userAgent.indexOf('MSIE');	
			if(ie>0){
				obj.className = "";
				var nextObj = nextnode(obj.nextSibling);
				nextObj.style.display = "none";
				
			}else{
				obj.setAttribute("class","");
				var nextObj = nextnode(obj.nextSibling);
				nextObj.style.display = "none";
			}
		}
		function showMenu3(obj){
			var menuObj = document.getElementById("sort");
			var ie = navigator.userAgent.indexOf('MSIE');		
			if(ie>0){
				menuObj.className = "here2";
				var prevObj = prevnode(obj.previousSibling);
				prevObj.className = "here";
				obj.style.display = "block";
			}else{
				menuObj.setAttribute("class","here2");
				var prevObj = prevnode(obj.previousSibling);
				prevObj.setAttribute("class","here");
				obj.style.display = "block";
			}
		}
		function hideMenu3(obj){
			var ie = navigator.userAgent.indexOf('MSIE');		
			if(ie>0){
				var prevObj = prevnode(obj.previousSibling);
				prevObj.className = "";
				obj.style.display = "none";
			}else{
				var prevObj = prevnode(obj.previousSibling);
				prevObj.setAttribute("class","");
				obj.style.display = "none";
			}		
		}
		
		function nextnode(node){
			if(node.nodeType == 1){ //判断是否是元素节点,排除空的文本节点
				return node;
			}
			if(node.nextSibling){
			return nextnode(node.nextSibling);
			}
		}
		function prevnode(node){
			if(node.nodeType == 1){ //判断是否是元素节点,排除空的文本节点
				return node;
			}
			if(node.previousSibling){
			return prevnode(node.previousSibling);
			}
		}
	</script>
	
	<?php endif; ?>
  </div>
</div>




  
  <div class="right">
    <ul class="menu">
      <li><a id="sy" href="index.html" <?php if ($this->_var['menu_index'] == 1): ?>class="here"<?php endif; ?>>首 页</a></li>
      <!--<li><a id="zxfq"  <?php if ($this->_var['menu_index'] == 2): ?>class="here"<?php endif; ?> href="category2.php?act=suit">套装稿件</a></li>-->	  
	  <li><a id="allc" <?php if ($this->_var['menu_index'] == 7): ?>class="here"<?php endif; ?> href="goods.php?id=1873&diy=2">LOGO设计</a></li>	  
      <li><a id="slfwx" <?php if ($this->_var['menu_index'] == 3): ?>class="here"<?php endif; ?> href="category2.html">设计模板</a></li>
	  
	  <li><a id="allc" <?php if ($this->_var['menu_index'] == 4): ?>class="here"<?php endif; ?> href="vcard.html">二维码应用</a></li>
	  <li><a id="allc"  href="sale3.html">节后大逆转</a></li>
	  <li><a id="allc" <?php if ($this->_var['menu_index'] == 2): ?>class="here"<?php endif; ?> href="package.html">商品组合</a></li>
      <!--<li><a id="zxfq" <?php if ($this->_var['menu_index'] == 2): ?>class="here"<?php endif; ?> href="goods_aa.php">套装稿件</a></li>
	  
	  <li><a id="allc" <?php if ($this->_var['menu_index'] == 6): ?>class="here"<?php endif; ?> href="sale2.html">金秋风暴</a></li>
       
	  <li><a id="fet"  <?php if ($this->_var['menu_index'] == 4): ?>class="here"<?php endif; ?> href="group_buy.html">每天10点</a></li>
      <li><a id="allc" <?php if ($this->_var['menu_index'] == 6): ?>class="here"<?php endif; ?> href="promotion.php?intro=promotion">促销活动</a></li>
      <li><a id="allc" <?php if ($this->_var['menu_index'] == 7): ?>class="here"<?php endif; ?> href="exchange.php">积分专区</a></li>-->
    </ul>
</div>

<div class="clear"></div>
</div>
</div>
